#ifndef _MAINFORM_H_
#define _MAINFORM_H_

#include <FBase.h>
#include <FUi.h>

class MainForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	MainForm(void);
	virtual ~MainForm(void);
	bool Initialize(void);

// Implementation
protected:
	static const int ID_BUTTON_START = 102;
	static const int ID_BUTTON_STOP = 103;
	static const int ID_BUTTON_PP = 105;

    static const int REQUEST_FLASH_PLAY = 100;
    static const int REQUEST_FLASH_STOP = 101;
    static const int REQUEST_FLASH_PLAY_PAUSE = 104;

    bool paused;

	Osp::Ui::Controls::Button *__pButtonStart;
	Osp::Ui::Controls::Button *__pButtonStop;
	Osp::Ui::Controls::Button *__pButtonPp;

	Osp::Ui::Controls::Flash* __pFlash;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);

	void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs);

};

#endif	//_MAINFORM_H_
